﻿using System;
using System.Messaging;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Security;
using TripRemoteObject;
using Comunication;

namespace ComunicationServer
{
    class Program
    {
        static void Main(string[] args)
        {
            IAccepManager accepManager = new TCPAcceptManager();
            TCPClient.BeginAcceptTCP(Properties.Settings.Default.TCPPort, accepManager);
            ComunicationServerController.Instance.ReadQueue();
            ComunicationServerController.Instance.StartRemoting();
            Console.ReadLine();
        }


    }
}
